<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

	<div class="row">
		<?php echo $form->label($model,'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'username'); ?>
		<?php echo $form->textField($model,'username',array('size'=>60,'maxlength'=>128)); ?>
	</div>

	<div class="row">
		<?php echo $form->label($model,'email'); ?>
		<?php echo $form->textField($model,'email',array('size'=>60,'maxlength'=>128)); ?>
	</div>

	<!--<div class="row">
		<?/*php echo $form->label($model,'rol'); ?>
		<?php echo $form->textField($model,'rol',array('size'=>20,'maxlength'=>20));*/ ?>
	</div>-->
	<div class="row">
		
            <?php echo $form->label($model,'rol'); ?>
            <?php $estadosArray = CHtml::listData(User::model()->findAll(),'rol','rol');      
                echo $form->DropDownList($model,'rol',$estadosArray);?>
	</div>
        
	<div class="row buttons">
		<?php echo CHtml::submitButton('Buscar'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->